const express = require('express')

const expressJoi = require('@escook/express-joi')
const user_schema = require('../schema/user')
const userinfoHanlder = require('../router_hanlder/userinfo')
const router = express.Router()
//获取用户信息
router.get('/userinfo',userinfoHanlder.userinfo)
//修改用户信息
router.post('/updateuserinfo',expressJoi(user_schema.update_userinfo_schema),userinfoHanlder.updateUserinfo)

//更新密码
router.post('/updatepwd',expressJoi(user_schema.update_password_schema),userinfoHanlder.updatepwd)


module.exports = router